/**
 * Copyright (C) 2010 MOBICOM. All rights reserved.

 * 
 * This software is the confidential and proprietary information of
 * Mobicom or one of its subsidiaries. You shall not disclose this
 * confidential information and shall use it only in accordance with
 * the terms of the license agreement or other applicable agreement
 * you entered into with Mobicom.
 * 
 * MOBICOM MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE
 * SUITABILITY OF THE SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING
 * BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. MOBICOM
 * SHALL NOT BE LIABLE FOR ANY LOSSES OR DAMAGES SUFFERED BY LICENSEE
 * AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THIS SOFTWARE OR
 * ITS DERIVATIVES.
 * 
 * Apr 9, 2011 11:42:05 PM 
 * @author Nguyen Dinh Phuoc Duc(ndpduc@gmail.com)
 */
package com.lily.smsbox;

import android.provider.BaseColumns;
/**
 * Internal Class
 * @author Nguyen Dinh Phuoc Duc (ndpduc@gmail.com)
 *
 */
public class SmsUtils {
  public final static String SMS_URI_ALL =  "content://sms/"; //0
  public final static String SMS_URI_INBOX = "content://sms/inbox";//1
  public final static String SMS_URI_SENT = "content://sms/sent";//2
  public final static String SMS_URI_DRAFT = "content://sms/draft";//3
  public final static String SMS_URI_OUTBOX = "content://sms/outbox";//4
  public final static String SMS_URI_FAILED = "content://sms/failed";//5
  public final static String SMS_URI_QUEUED = "content://sms/queued";//6
  
//inbox structure
  //   _id =>  Short message sequence number such as  100
  //   thread_id =>  The ordinal as a dialogue  100
  //   address =>  The sender address, cell phone number  . If  +8613811810000
  //   person =>  The sender, returns a number is an ordinal number in your contacts list  , Strangers to  null
  //   date =>  Date long  . If  1256539465022
  //   protocol =>  Protocol   0 SMS_RPOTO, 1 MMS_PROTO
  //   read =>  Whether reading 0 unread  , 1 Read  
  //   status =>  Receive State-1  ,0 complete, 64 pending, 128 failed
  //   type =>  Type 1 is received  ,2 Is issued  
  //   body =>  Short message content  
  //   service_center =>  Short message service center number number.  +8613800755500
  
  
  /**
   * These are the columns that are available when reading SMS
   * messages from the ICC.  Columns whose names begin with "is_"
   * have either "true" or "false" as their values.
   */
  public static final String[] ICC_COLUMNS = {
    // N.B.: These columns must appear in the same order as the
    // calls to add appear in convertIccToSms.
    "service_center_address",       // getServiceCenterAddress
    "address",                      // getDisplayOriginatingAddress
    "message_class",                // getMessageClass
    "body",                         // getDisplayMessageBody
    "date",                         // getTimestampMillis
    "status",                       // getStatusOnIcc
    "index_on_icc",                 // getIndexOnIcc
    "is_status_report",             // isStatusReportMessage
    "transport_type",               // Always "sms".
    "type",                         // Always MESSAGE_TYPE_ALL.
    "locked",                       // Always 0 (false).
    "error_code"                    // Always 0
  };
  
  //These are the columns that appear only in the SMS message
  // table.
  public static final String[] SMS_ONLY_COLUMNS = { 
    "address", 
    "body", 
    "person", 
    "reply_path_present",
    "service_center", 
    "status", 
    "subject", 
    "type", 
    "error_code" 
  };
}
